package com.uphone.kingmall.bean;

import com.luck.picture.lib.entity.LocalMedia;
import com.uphone.kingmall.base.BaseBean;

import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 *     author : 孙增艳
 *     e-mail : sunzengyan@outlook.com
 *     time   : 2019/2/25
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class OrderBean extends BaseBean<OrderBean.DataBean> implements Serializable {
//    空所有订单;0已取消；10待付款；20待发货；30待收货；40待评价；50已完成；60售后
    /**
     * 待分享
     */
    public static final String DFX = "";
    /**
     * 待付款
     */
    public static final String DFK = "10";
    /**
     * 待发货
     */
    public static final String DFH = "20";
    /**
     * 待收货
     */
    public static final String DSH = "30";
    /**
     * 待评价
     */
    public static final String DPJ = "40";

    /**
     * current : 1
     * pages : 1
     * data : [{"userId":1,"shopId":1,"shopName":"测试店铺","orderState":30,"refundState":0,"orderTime":"2019-01-18 10:19:13","orderFee":200,"postFee":0,"orderType":1,"postType":1,"orderId":1,"shopOwnerId":2,"orderGoodsNum":2,"shopPhone":"1111","checkCode":"","goodslist":[{"orderGoodsId":1,"goodsId":1,"goodsName":"大苏打","goodsImg":"http://localhost:8082/images/photo1.png","goodsPerFee":100,"goodsSpec":"颜色-蓝色","goodsNum":1},{"orderGoodsId":2,"goodsId":2,"goodsName":"大苏打2","goodsImg":"http://localhost:8082/images/photo1.png","goodsPerFee":100,"goodsSpec":"颜色-蓝色2","goodsNum":1}],"orderStatus":30},{"userId":1,"shopId":1,"shopName":"测试店铺","orderState":50,"refundState":0,"orderTime":"2019-02-22 17:38:13","orderFee":123,"postFee":0,"orderType":1,"postType":1,"orderId":13,"shopOwnerId":2,"orderGoodsNum":2,"shopPhone":"1111","checkCode":"","goodslist":[{"orderGoodsId":14,"goodsId":1,"goodsName":"优质商品","goodsImg":"http://localhost:8082/upload/images/goods/97e67d5a0d7d447483936fc5e00c9023.jpg","goodsPerFee":124,"goodsSpec":"300 ","goodsNum":1},{"orderGoodsId":15,"goodsId":2,"goodsName":"优质商品","goodsImg":"http://localhost:8082/upload/images/goods/97e67d5a0d7d447483936fc5e00c9023.jpg","goodsPerFee":124,"goodsSpec":"300 ","goodsNum":1}],"orderStatus":50}]
     * count : 2
     * limit : 10
     */

    private int current;
    private int pages;
    private int count;
    private int limit;

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public static class DataBean extends BaseBean.DataBean implements Serializable {
        /**
         * userId : 1
         * shopId : 1
         * shopName : 测试店铺
         * orderState : 30
         * refundState : 0
         * orderTime : 2019-01-18 10:19:13
         * orderFee : 200
         * postFee : 0
         * orderType : 1
         * postType : 1
         * orderId : 1
         * shopOwnerId : 2
         * orderGoodsNum : 2
         * shopPhone : 1111
         * checkCode :
         * goodslist : [{"orderGoodsId":1,"goodsId":1,"goodsName":"大苏打","goodsImg":"http://localhost:8082/images/photo1.png","goodsPerFee":100,"goodsSpec":"颜色-蓝色","goodsNum":1},{"orderGoodsId":2,"goodsId":2,"goodsName":"大苏打2","goodsImg":"http://localhost:8082/images/photo1.png","goodsPerFee":100,"goodsSpec":"颜色-蓝色2","goodsNum":1}]
         * orderStatus : 30
         */

        private int userId;
        private int shopId;
        private String shopName;
        private int orderState;
        private int refundState;
        private String orderTime;
        private double orderFee;
        private double postFee;
        private int orderType;
        private int postType;
        private int installationType;
        private double installationFee;
        private int orderId;
        private int shopOwnerId;
        private int orderGoodsNum;
        private String shopPhone;
        private String checkCode;
        private int orderStatus;
        private List<GoodslistBean> goodslist;

        private List<LocalMedia> localMediaList;

        public List<LocalMedia> getLocalMediaList() {
            return localMediaList;
        }

        public void setLocalMediaList(List<LocalMedia> localMediaList) {
            this.localMediaList = localMediaList;
        }

        public int getInstallationType() {
            return installationType;
        }

        public void setInstallationType(int installationType) {
            this.installationType = installationType;
        }

        public double getInstallationFee() {
            return installationFee;
        }

        public void setInstallationFee(double installationFee) {
            this.installationFee = installationFee;
        }

        public DataBean(OrderDetailBean.OrderBean bean) {
            userId = bean.getUserId();
            shopId = bean.getShopId();
            shopName = bean.getShopName();
            orderState = bean.getOrderState();
            refundState = bean.getRefundState();
            orderTime = bean.getOrderTime();
            orderFee = bean.getOrderFee();
            postFee = bean.getPostFee();
            postType = bean.getPostType();
            orderId = bean.getOrderId();
            shopOwnerId = bean.getShopOwnerId();
            shopPhone = bean.getShopPhone();
            checkCode = bean.getCheckCode();
            orderStatus = bean.getOrderStatus();
            goodslist = bean.getGoodslist();
            installationType=bean.getInstallationType();
            installationFee=bean.getInstallationFee();
        }

        public int getUserId() {
            return userId;
        }

        public void setUserId(int userId) {
            this.userId = userId;
        }

        public int getShopId() {
            return shopId;
        }

        public void setShopId(int shopId) {
            this.shopId = shopId;
        }

        public String getShopName() {
            return shopName;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public int getOrderState() {
            return orderState;
        }

        public void setOrderState(int orderState) {
            this.orderState = orderState;
        }

        public int getRefundState() {
            return refundState;
        }

        public void setRefundState(int refundState) {
            this.refundState = refundState;
        }

        public String getOrderTime() {
            return orderTime;
        }

        public void setOrderTime(String orderTime) {
            this.orderTime = orderTime;
        }

        public double getOrderFee() {
            return orderFee;
        }

        public void setOrderFee(double orderFee) {
            this.orderFee = orderFee;
        }

        public double getPostFee() {
            return postFee;
        }

        public void setPostFee(double postFee) {
            this.postFee = postFee;
        }

        public int getOrderType() {
            return orderType;
        }

        public void setOrderType(int orderType) {
            this.orderType = orderType;
        }

        public int getPostType() {
            return postType;
        }

        public void setPostType(int postType) {
            this.postType = postType;
        }

        public int getOrderId() {
            return orderId;
        }

        public void setOrderId(int orderId) {
            this.orderId = orderId;
        }

        public int getShopOwnerId() {
            return shopOwnerId;
        }

        public void setShopOwnerId(int shopOwnerId) {
            this.shopOwnerId = shopOwnerId;
        }

        public int getOrderGoodsNum() {
            return orderGoodsNum;
        }

        public void setOrderGoodsNum(int orderGoodsNum) {
            this.orderGoodsNum = orderGoodsNum;
        }

        public String getShopPhone() {
            return shopPhone;
        }

        public void setShopPhone(String shopPhone) {
            this.shopPhone = shopPhone;
        }

        public String getCheckCode() {
            return checkCode;
        }

        public void setCheckCode(String checkCode) {
            this.checkCode = checkCode;
        }

        public int getOrderStatus() {
            return orderStatus;
        }

        public void setOrderStatus(int orderStatus) {
            this.orderStatus = orderStatus;
        }

        public List<GoodslistBean> getGoodslist() {
            return goodslist;
        }

        public void setGoodslist(List<GoodslistBean> goodslist) {
            this.goodslist = goodslist;
        }

        public static class GoodslistBean implements Serializable {
            /**
             * orderGoodsId : 1
             * goodsId : 1
             * goodsName : 大苏打
             * goodsImg : http://localhost:8082/images/photo1.png
             * goodsPerFee : 100
             * goodsSpec : 颜色-蓝色
             * goodsNum : 1
             */

            private int orderGoodsId;
            private int goodsId;
            private String goodsName;
            private String goodsImg;
            private double goodsPerFee;
            private String goodsSpec;
            private int goodsNum;

            public int getOrderGoodsId() {
                return orderGoodsId;
            }

            public void setOrderGoodsId(int orderGoodsId) {
                this.orderGoodsId = orderGoodsId;
            }

            public int getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(int goodsId) {
                this.goodsId = goodsId;
            }

            public String getGoodsName() {
                return goodsName;
            }

            public void setGoodsName(String goodsName) {
                this.goodsName = goodsName;
            }

            public String getGoodsImg() {
                return goodsImg;
            }

            public void setGoodsImg(String goodsImg) {
                this.goodsImg = goodsImg;
            }

            public double getGoodsPerFee() {
                return goodsPerFee;
            }

            public void setGoodsPerFee(double goodsPerFee) {
                this.goodsPerFee = goodsPerFee;
            }

            public String getGoodsSpec() {
                return goodsSpec;
            }

            public void setGoodsSpec(String goodsSpec) {
                this.goodsSpec = goodsSpec;
            }

            public int getGoodsNum() {
                return goodsNum;
            }

            public void setGoodsNum(int goodsNum) {
                this.goodsNum = goodsNum;
            }
        }
    }
}
